package proInstMgrModule.Component;

import java.util.ArrayList;

import edu.ccut.saturn.component.DefaultComponent;
import edu.ccut.saturn.component.IParameterContext;

public class CheckHasActivityInFlow extends DefaultComponent {
	@SuppressWarnings("unchecked")
	@Override
	public void execute(IParameterContext parameterContext) throws Exception {
		ArrayList<String> activityIdList = (ArrayList<String>)parameterContext.getParameterValue(0);
		ArrayList<String> activityIds = (ArrayList<String>)parameterContext.getParameterValue(1);
		parameterContext.setParameter(2, activityIdList.containsAll(activityIds));
	}
}